﻿using UnityEditor;
using UnityEngine;

namespace Yoozoo.Gameplay.Liberty.PlayerController
{
    [CustomEditor(typeof(PlayerInputCamera))]
    public class PlayerInputCameraEditor : UnityEditor.Editor
    {
        public override void OnInspectorGUI()
        {
            var t = target as PlayerInputCamera;
            
            GUILayout.BeginHorizontal();

            if (GUILayout.Button("Follow"))
            {
                t.ControlMode = CameraControlMode.Follow;
            }
            
            if (GUILayout.Button("Input"))
            {
                t.ControlMode = CameraControlMode.Input;
            }
            
            GUILayout.EndHorizontal();
            
            base.OnInspectorGUI();
        }
    }
}